package service

import "fmt"

//暂时没有用到这部分

var (
	only *SvcFactory
)

type SvcFactory struct {
	ChatService    *ChatService
	DrawingService *DrawingService
}

func newServiceFactory() *SvcFactory {
	serviceManagement := new(SvcFactory)
	serviceManagement.ChatService = newChatService()
	serviceManagement.DrawingService = newDrawingService()
	return serviceManagement
}

// Init 初始化服务
func Init() {
	only = newServiceFactory()
	fmt.Println("init server")
}

// Only 初始化服务
func Only() *SvcFactory {
	return only
}

// Exit 初始化服务
func Exit() {
}
